//
//  UIViewController+LLScrollNavigation.m
//  live.ly
//
//  Created by bob on 16/6/29.
//  Copyright © 2016年 musical.ly. All rights reserved.
//


@implementation UIViewController (LLScrollNavigation)

- (LLMainScrollViewController *)scrollNavigationController
{
    UIViewController *vc = self;
    while (vc) {
        if ([vc isKindOfClass:[LLMainScrollViewController class]]) {
            return (id)vc;
        }
        vc = vc.parentViewController;
    }
    return nil;
}

@end
